<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Number声明方式和基本函数</title>
</head>
<body>
    <script>
        let num = new Number(2634);
        console.log(typeof num);
        console.log(num.valueOf() + 1);

        let number = 99;
        console.log(typeof number);
        console.log(number + 1);

        let xiasnn = number.toString();
        console.log(typeof xiasnn);


        let a = 4325.5536;
        // 是否是一个整数
        console.log(Number.isInteger(a));
        // 四舍五入，保留整数
        console.log(a.toFixed(0));
        // 四舍五入，保留2位小数
        console.log(a.toFixed(2));
    </script>
</body>
</html>